<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>首页</title>
</head>
<body>
<% SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
out.print(sdf.format(new Date()) );
//out.print(date);
%>
</body>
</html>